import request from '@utils/request'
import { APIResult } from '@utils/request/type'
import { IndexCountDTO, IndexMapDataVO } from '@/api/entity/home'
import { ServerEnum } from '@/api/enum/server'

/**
 * 首页-数据统计
 */
export const homeDataStatisticsAPI = () => request.post<APIResult<IndexCountDTO>>(ServerEnum.System + '/index/count')

/**
 * 首页-网关统计
 */
export const homeDataGatewayAPI = () => request.post<APIResult<IndexMapDataVO>>(ServerEnum.System + '/index/mapData')
